import request from './request';

export default {
  getValue(key) {
    return request({
      url: `/index/getValue?key=${key}`,
      method: 'get',
    });
  },
  getPhotoWall() {
    return request({
      url: `/index/getPhotoWallData`,
      method: 'get',
    });
  },
  getFaqData() {
    return request({
      url: `/index/getFaqData`,
      method: 'get'
    });
  },
  getTeacherData() {
    return request({
      url: "/index/getTeacherData",
      method: 'get',
    });
  },
  getNewsData(params) {
    return request({
      url: "/index/getNewsData",
      method: 'post',
      data: params
    });
  },
  getNewsDetail(id) {
    return request({
      url: `/index/getNewsDetail/${id}`,
      method: 'get',
    });
  },
  saveEnrollment(enrollmentInfo) {
    return request({
      url: "/index/enrollment",
      method: 'post',
      data: enrollmentInfo
    });
  },

};
